package top.lyjwn.todo.weinxin.mch.service;

import top.lyjwn.todo.common.template.R;
import top.lyjwn.todo.weinxin.data.mch.PayResultNotice;
import top.lyjwn.todo.weinxin.data.mch.RefundResultNoticeReqInfo;

/**
 * 微信支付相关的回调处理逻辑
 *
 * @author luoyujie
 */
public interface WXPayNotarize {

    /**
     * 支付成功回调逻辑
     * @param payResultNotice
     * @return
     */
    R notarizePay(PayResultNotice payResultNotice);

    /**
     * 退款通知回调逻辑
     * @param refundResultNoticeReqInfo
     * @return
     */
    R notarizeRefund(RefundResultNoticeReqInfo refundResultNoticeReqInfo);
}
